<?php 

class Zen_Controller_Action_Helper_One extends Zend_Controller_Action_Helper_Abstract
{
	
	public function direct(){
		
		$action = $this->getActionController();
		$helper = new Zend_Controller_Action_HelperBroker($action);
		$alias = $helper->checkParam('alias',true,'StripTags','NotEmpty');
		$model = $action->model;
		$res = $model->getOne($alias);
		if ($res && isset($res['label']))
			$action->view->title = $res['label'];  
		$action->view->res = $res; 
		
	}
		
}